nlp_architect.data.intent_datasets.IntentDataset

class nlp_architect.data.intent_datasets.IntentDataset(sentence_length=50, word_length=12)[source]

Intent extraction dataset base class

Parameters:sentence_length (int) – max sentence length
__init__(sentence_length=50, word_length=12)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([sentence_length, word_length]) Initialize self.

Attributes

char_vocab word character vocabulary
char_vocab_size char vocabulary size
intent_size intent label vocabulary size
intents_vocab intent labels vocabulary
label_vocab_size label vocabulary size
tags_vocab labels vocabulary
test_set test set
train_set train set
word_vocab tokens vocabulary
word_vocab_size vocabulary size
char_vocab

word character vocabulary

Type:dict
char_vocab_size

char vocabulary size

Type:int
intent_size

intent label vocabulary size

Type:int
intents_vocab

intent labels vocabulary

Type:dict
label_vocab_size

label vocabulary size

Type:int
tags_vocab

labels vocabulary

Type:dict
test_set

test set

Type:tuple of numpy.ndarray
train_set

train set

Type:tuple of numpy.ndarray
word_vocab

tokens vocabulary

Type:dict
word_vocab_size

vocabulary size

Type:int